package com.qingxin.wuye.repertory.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;
import com.qingxin.sys.entity.BaseEntity;
/**
 * 总库存
 * @author hezhiwei
 *
 */
@Entity
@Table(name="gi")
public class Gi extends BaseEntity implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2205297063955553730L;
	private String giid;
	private String repertoryid;//仓库id
	private String resid;//商品id
	private Integer ginum;//库存数量
	private Integer inNum;//库存数量
	private Integer outNum;//库存数量
	
	
	private String repertoryName;
	private String resName;
	
	public Gi() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public Gi(String giid, String repertoryid, String resid, Integer ginum,Integer inNum,Integer outNum) {
		super();
		this.giid = giid;
		this.repertoryid = repertoryid;
		this.resid = resid;
		this.ginum = ginum;
		this.inNum = inNum;
		this.outNum = outNum;
	}
	
	
	

	
	public Gi(String giid, String repertoryid, String resid, Integer ginum,
			Integer inNum, Integer outNum, String resName ,String repertoryName) {
		super();
		this.giid = giid;
		this.repertoryid = repertoryid;
		this.resid = resid;
		this.ginum = ginum;
		this.inNum = inNum;
		this.outNum = outNum;
		this.repertoryName = repertoryName;
		this.resName = resName;
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "giid", unique = true, nullable = false, length = 100)
	public String getGiid() {
		return giid;
	}

	public void setGiid(String giid) {
		this.giid = giid;
	}

	@Column(name = "repertoryid", length = 100)
	public String getRepertoryid() {
		return repertoryid;
	}

	public void setRepertoryid(String repertoryid) {
		this.repertoryid = repertoryid;
	}

	@Column(name = "resid", length = 100)
	public String getResid() {
		return resid;
	}

	public void setResid(String resid) {
		this.resid = resid;
	}

	@Column(name = "ginum")
	public Integer getGinum() {
		return ginum;
	}

	public void setGinum(Integer ginum) {
		this.ginum = ginum;
	}
	@Column(name = "inNum")
	public Integer getInNum() {
		return inNum;
	}

	public void setInNum(Integer inNum) {
		this.inNum = inNum;
	}
	@Column(name = "outNum")
	public Integer getOutNum() {
		return outNum;
	}

	public void setOutNum(Integer outNum) {
		this.outNum = outNum;
	}

	@Transient
	public String getRepertoryName() {
		return repertoryName;
	}

	public void setRepertoryName(String repertoryName) {
		this.repertoryName = repertoryName;
	}
	@Transient
	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}
	
	
	
	
}
